﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WorkBasket.Data.Contracts;
using WorkBasket.Data.Entities;
 

namespace WorkBasket.Data.Repository
{
    public class FieldRepository : RepositoryBase<Field>
    {
        public FieldRepository(DbContext context)
            : base(context)
        {
        }

        public ICollection<Field> FindByWorkflowID(int workflowID)
        {
            return base.ThisDBset.Where(f => f.WorkflowID == workflowID).ToList<Field>();

        }


    }
}
